package com.xuxueli.commontdemo.commont.testSocket;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerTwo {

	/**
	 * @param args
	 */
    public static void main(String[] args) {
        try {
            ServerSocket ss=new ServerSocket(9966);
            System.out.println("服务器成功启动......");
            //等待客户端请求
            while(true){
                Socket	 socket=ss.accept();
                new Server(socket).start();

            }
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

}
